package com.netease.nimlib.search.model;

import org.apache.lucene.search.ScoreDoc;

public class NIMIndexRecord {
	public static final long TYPE_MSG = 0x10000;
	
	// i.e. message
	public long type;
	
	// i.e. message type
	public long subtype;
	
	// i.e. message seq id
	public long dataid;

	// i.e. message session id 
	public String id;
	
	// time
	public long time;
	
	// content
	public String content;
	
	// count
	public int count;
	
	// doc id
	public ScoreDoc scoreDoc;
	
	@Override
	public String toString() {
		return toBriefString() + 
				" content " + content;
	}
	
	public String toBriefString() {
		return "type " + type + 
				" subtype " + subtype + 
				" dataid " + dataid + 
				" id " + id + 
				" time " + time + 
				" count " + count;
	}
}
